#include "user.h"

user::user(){}

user::user(QString un,QString ac,QString ps,UserRole ro,QMap<QString,car>* cm) {
    //为私有成员赋值
    userName=un;
    account=ac;
    pswd=ps;
    role=ro;
    carMap=cm;
}

bool user::compPsed(QString p,UserRole u)
{
    return (p==pswd)&&(u==role);
}
